#ifndef QUDPSENDER_H
#define QUDPSENDER_H

#include <QWidget>
#include <QUdpSocket>
#include <QDebug>


namespace Ui {
class QUdpSender;
}

class QUdpSender : public QWidget
{
    Q_OBJECT

public:
    explicit QUdpSender(QWidget *parent = nullptr);
    ~QUdpSender();

private slots:
    void on_sendButton_clicked();

    void on_rebindButton_clicked();

    void on_clearButton_clicked();

private:
    Ui::QUdpSender *ui;
    QUdpSocket* qUdpSocket;
    QMetaObject::Connection conn;
};

#endif // QUDPSENDER_H
